<?php
$this->breadcrumbs = array(
    '产品与栏目设置' => array('subsiteCategory/admin'),
    '查看',
);
?>
<div class="box corners shadow">
    <div class="box-header">
        <h2>栏目 #<?php echo $model->title; ?></h2></h2>
        <div class="box-header-ctrls">	
            <a href="javascript:void(null);" title="" class="close"><!-- --></a>
        </div>
    </div>
    <div class="box-content" id="contacts-1a">
        <div class="inbox-sf">
            <?php
            echo CHtml::link('<span>删除</span>', '#', array(
                'submit' => array('delete'),
                'class' => 'button black fr',
                'confirm' => '您确定要删除吗?'
            ));
            ?>            
            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('create'); ?>">
                <span>创建栏目</span>
            </a>
            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('update', array('id' => $model->id)); ?>">
                <span>编辑栏目</span>
            </a>
            <a class="button black fr" href=" <?php echo $this->rewriteCreateUrl('admin'); ?>">
                <span>栏目列表</span>
            </a>
        </div>
        <?php
        $this->widget('zii.widgets.CDetailView', array(
            'data' => $model,
            'cssFile' => '',
            'htmlOptions' => array('class' => 'tablelist'),
            'attributes' => array(
                'id',
                'title',
                array(
                    'name' => 'game_id',
                    'value' => ProductCategory::model()->getGameNameById($model->game_id),
                ),
                array(
                    'name' => 'pid',
                    'value' => SubsiteCategory::model()->getSortNameById($model->pid),
                ),
                array(
                    'name' => 'product_model',
                    'value' => Yii::app()->params->model_array[$model->product_model],
                ),
                array(
                    'name' => 'infosort_id',
                    'value' => $model->infosort_id>0?Infosort::model()->findByPk($model->infosort_id)->sort_name:"",
                ),
                array(
                    'name' => 'status',
                    'value' => $model->status==1?"激活":"禁用",
                ),
                array(
                    'name' => 'hot',
                    'value' => $model->hot==1 ? '是' : '否',
                ),
                'sort',
                'logo',
                'thum',
                'page_title',
                'page_keywords',
                'page_description',
                'info:html',
            ),
        ));
        ?>
    </div>
</div>